package com.zwy.fornote.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zwy.fornote.model.User;

import java.util.Date;

/**
 *回答前端实体类
 *
 * @author zhuyi 1205242 
 * @version AnswerVO 2021/4/4 13:16
 */
public class AnswerVO {

    private Integer id;

    private String content;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;

    private User user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
